

from faker import Faker
import baidu_translate

baidufanyiapi = BaiduTranslateApi('20240926002161022', 'cYHndt0BJaRYO1_XXQEk')
fake = Faker()



def generate_name() :
    name = fake.name()
    name_cn = baidufanyiapi.translate(name, 'en', 'zh')
    return f"{name} ; {name_cn}"

def generate_adress() :
    address = fake.address()
    address_cn = baidufanyiapi.translate(address, 'en', 'zh')
    return f"{address} ; {address_cn}"




for i in range(0, 1):
    character_name = generate_name()
    address_name = generate_adress()
    print(character_name)
    print(address_name)



